package com.miao.util;

public class PaymentID {
    public  String setID() {


        int r1=(int)(Math.random()*(10));//产生2个0-9的随机数
        int r2=(int)(Math.random()*(10));
        long now = System.currentTimeMillis();//一个13位的时间戳
        String paymentID0 =String.valueOf(r1)+String.valueOf(r2)+String.valueOf(now);
        int r3=(int)(Math.random()*(10));//产生2个0-9的随机数
        int r4=(int)(Math.random()*(10));
        String souID = paymentID0 +String.valueOf(r3)+String.valueOf(r4);// 订单I
        return souID;



    }

    public static void main(String[] args) {
        PaymentID paymentID=new PaymentID();
        paymentID.setID();

        return ;
    }


}
